package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class Daily implements Serializable {
    private Integer no;

    private String ts_code;

    private Date trade_date;

    private Double open;

    private Double high;

    private Double low;

    private Double close;

    private Double pre_close;

    private Double change;

    private Double pct_chg;

    private Double vol;

    private Double amount;

    private Date open_day;

    private static final long serialVersionUID = 1L;

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getTs_code() {
        return ts_code;
    }

    public void setTs_code(String ts_code) {
        this.ts_code = ts_code == null ? null : ts_code.trim();
    }

    public Date getTrade_date() {
        return trade_date;
    }

    public void setTrade_date(Date trade_date) {
        this.trade_date = trade_date;
    }

    public Double getOpen() {
        return open;
    }

    public void setOpen(Double open) {
        this.open = open;
    }

    public Double getHigh() {
        return high;
    }

    public void setHigh(Double high) {
        this.high = high;
    }

    public Double getLow() {
        return low;
    }

    public void setLow(Double low) {
        this.low = low;
    }

    public Double getClose() {
        return close;
    }

    public void setClose(Double close) {
        this.close = close;
    }

    public Double getPre_close() {
        return pre_close;
    }

    public void setPre_close(Double pre_close) {
        this.pre_close = pre_close;
    }

    public Double getChange() {
        return change;
    }

    public void setChange(Double change) {
        this.change = change;
    }

    public Double getPct_chg() {
        return pct_chg;
    }

    public void setPct_chg(Double pct_chg) {
        this.pct_chg = pct_chg;
    }

    public Double getVol() {
        return vol;
    }

    public void setVol(Double vol) {
        this.vol = vol;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Daily other = (Daily) that;
        return (this.getNo() == null ? other.getNo() == null : this.getNo().equals(other.getNo()))
            && (this.getTs_code() == null ? other.getTs_code() == null : this.getTs_code().equals(other.getTs_code()))
            && (this.getTrade_date() == null ? other.getTrade_date() == null : this.getTrade_date().equals(other.getTrade_date()))
            && (this.getOpen() == null ? other.getOpen() == null : this.getOpen().equals(other.getOpen()))
            && (this.getHigh() == null ? other.getHigh() == null : this.getHigh().equals(other.getHigh()))
            && (this.getLow() == null ? other.getLow() == null : this.getLow().equals(other.getLow()))
            && (this.getClose() == null ? other.getClose() == null : this.getClose().equals(other.getClose()))
            && (this.getPre_close() == null ? other.getPre_close() == null : this.getPre_close().equals(other.getPre_close()))
            && (this.getChange() == null ? other.getChange() == null : this.getChange().equals(other.getChange()))
            && (this.getPct_chg() == null ? other.getPct_chg() == null : this.getPct_chg().equals(other.getPct_chg()))
            && (this.getVol() == null ? other.getVol() == null : this.getVol().equals(other.getVol()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getOpen_day() == null ? other.getOpen_day() == null : this.getOpen_day().equals(other.getOpen_day()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNo() == null) ? 0 : getNo().hashCode());
        result = prime * result + ((getTs_code() == null) ? 0 : getTs_code().hashCode());
        result = prime * result + ((getTrade_date() == null) ? 0 : getTrade_date().hashCode());
        result = prime * result + ((getOpen() == null) ? 0 : getOpen().hashCode());
        result = prime * result + ((getHigh() == null) ? 0 : getHigh().hashCode());
        result = prime * result + ((getLow() == null) ? 0 : getLow().hashCode());
        result = prime * result + ((getClose() == null) ? 0 : getClose().hashCode());
        result = prime * result + ((getPre_close() == null) ? 0 : getPre_close().hashCode());
        result = prime * result + ((getChange() == null) ? 0 : getChange().hashCode());
        result = prime * result + ((getPct_chg() == null) ? 0 : getPct_chg().hashCode());
        result = prime * result + ((getVol() == null) ? 0 : getVol().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getOpen_day() == null) ? 0 : getOpen_day().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", no=").append(no);
        sb.append(", ts_code=").append(ts_code);
        sb.append(", trade_date=").append(trade_date);
        sb.append(", open=").append(open);
        sb.append(", high=").append(high);
        sb.append(", low=").append(low);
        sb.append(", close=").append(close);
        sb.append(", pre_close=").append(pre_close);
        sb.append(", change=").append(change);
        sb.append(", pct_chg=").append(pct_chg);
        sb.append(", vol=").append(vol);
        sb.append(", amount=").append(amount);
        sb.append(", open_day=").append(open_day);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}